import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Page/Login'
import Home from '../components/Page/Home'
import ProductPage from '../components/Page/ProductPage'
import ProductStockPage from '../components/Page/ProductStockPage'
import ProductStockLogPage from '../components/Page/ProductStockLogPage'
import ProductLogPage from '../components/Page/ProductLogPage'
import ProductClassifyPage from '../components/Page/ProductClassifyPage'
import OrderPage from '../components/Page/OrderPage'
import OrderApplyPage from '../components/Page/OrderApplyPage'
import OrderExpressPage from '../components/Page/OrderExpressPage'
import OrderGroupPage from '../components/Page/OrderGroupPage'
import SysUserPage from '../components/Page/SysUserPage'
import ShopPage from '../components/Page/ShopPage'
import ShopBankPage from '../components/Page/ShopBankPage'
import ShopWithdrawPage from '../components/Page/ShopWithdrawPage'
import ShopUpdateMainPage from '../components/Page/ShopUpdateMainPage'
import UserLoginLogPage from '../components/Page/UserLoginLogPage'
import OrderReplyPage from '../components/Page/OrderReplyPage'
import ShopAddressPage from '../components/Page/ShopAddressPage'
import ShopAddressFormPage from '../components/Page/ShopAddressFormPage'
import ShopMoneyLogPage from '../components/Page/ShopMoneyLogPage'
import MyAMap from '../components/Page/MyAMap'
import ChatPage from '../components/Page/ChatPage'
import SupplierProductSearchPage from '../components/Page/SupplierProductSearchPage'
import SupplierSearchPage from '../components/Page/SupplierSearchPage'
import SupplierConfirmOrderPage from '../components/Page/SupplierConfirmOrderPage'
import SupplierOrderListPage from '../components/Page/SupplierOrderListPage'
import SupplierOrderApplyListPage from '../components/Page/SupplierOrderApplyListPage'
import ShopBindingMemberPage from '../components/Page/ShopBindingMemberPage'
import ShopBrandPage from '../components/Page/ShopBrandPage'
import ShopSkillProductPage from '../components/Page/ShopSkillProductPage'
import ShopProductSpecificationsPage from '../components/Page/ShopProductSpecificationsPage'
import ShopNoticePage from '../components/Page/ShopNoticePage'
import OrderDetailPage from '../components/Page/OrderDetailPage'
import CouponPage from '../components/Page/CouponPage'

Vue.use(Router)

// 两种方式: hash带#的路由,history就是把省掉
export default new Router({
  mode: 'hash',
  routes: [
    // 默认选择: 主页
    {
      path: '/',
      redirect: '/Home',
    },
    {
      path: '/Home',
      name: 'Home',
      component:Home
    },
    {
      path: '/SysUser',
      name: 'SysUser',
      component:SysUserPage
    },
    {
      path: '/ProductPage',
      name: 'ProductPage',
      component:ProductPage
    },
    {
      path: '/ProductStockPage',
      name: 'ProductStockPage',
      component:ProductStockPage
    },
    {
      path: '/ProductStockLogPage',
      name: 'ProductStockLogPage',
      component:ProductStockLogPage
    },
    {
      path: '/ProductLogPage',
      name: 'ProductLogPage',
      component:ProductLogPage
    },
    {
      path: '/ProductClassifyPage',
      name: 'ProductClassifyPage',
      component:ProductClassifyPage
    },
    {
      path: '/ShopPage',
      name: 'ShopPage',
      component: ShopPage
    },
    {
      path: '/ShopBankPage',
      name: 'ShopBankPage',
      component: ShopBankPage
    },
    {
      path: '/ShopWithdrawPage',
      name: 'ShopWithdrawPage',
      component: ShopWithdrawPage
    },
    {
      path: '/ShopUpdateMainPage',
      name: 'ShopUpdateMainPage',
      component: ShopUpdateMainPage
    },
    {
      path: '/MyAMap',
      name: 'MyAMap',
      component:MyAMap
    },
    {
      path: '/ChatPage',
      name: 'ChatPage',
      component:ChatPage
    },
    {
      path: '/OrderPage',
      name: 'OrderPage',
      component:OrderPage
    },
    {
      path: '/OrderApplyPage',
      name: 'OrderApplyPage',
      component:OrderApplyPage
    },
    {
      path: '/OrderGroupPage',
      name: 'OrderGroupPage',
      component:OrderGroupPage
    },
    {
      path: '/OrderExpressPage',
      name: 'OrderExpressPage',
      component:OrderExpressPage
    },
    {
      path: '/UserLoginLogPage',
      name: 'UserLoginLogPage',
      component:UserLoginLogPage
    },
    {
      path: '/OrderReplyPage',
      name: 'OrderReplyPage',
      component:OrderReplyPage
    },
    {
      path: '/ShopAddressPage',
      name: 'ShopAddressPage',
      component:ShopAddressPage
    },
    {
      path: '/ShopAddressFormPage',
      name: 'ShopAddressFormPage',
      component:ShopAddressFormPage
    },
    {
      path: '/ShopMoneyLogPage',
      name: 'ShopMoneyLogPage',
      component:ShopMoneyLogPage
    },
    {
      path: '/SupplierOrderListPage',
      component:SupplierOrderListPage,
      name: 'SupplierOrderListPage',
    },
    {
      path: '/SupplierConfirmOrderPage',
      component:SupplierConfirmOrderPage,
      name: 'SupplierConfirmOrderPage',
    },
    {
      path: '/SupplierProductSearchPage',
      component:SupplierProductSearchPage,
      name: 'SupplierProductSearchPage',
    },
    {
      path: '/SupplierSearchPage',
      component:SupplierSearchPage,
      name: 'SupplierSearchPage',
    },
    {
      path: '/SupplierOrderApplyListPage',
      component:SupplierOrderApplyListPage,
      name: 'SupplierOrderApplyListPage',
    },
    {
      path: '/ShopBindingMemberPage',
      component:ShopBindingMemberPage,
      name: 'ShopBindingMemberPage',
    },
    {
      path: '/ShopBrandPage',
      component:ShopBrandPage,
      name: 'ShopBrandPage',
    },
    {
      path: '/ShopSkillProductPage',
      name: 'ShopSkillProductPage',
      component:ShopSkillProductPage
    },
    {
      path: '/ShopProductSpecificationsPage',
      name: 'ShopProductSpecificationsPage',
      component:ShopProductSpecificationsPage
    },
    {
      path: '/ShopNoticePage',
      name: 'ShopNoticePage',
      component:ShopNoticePage
    },
    {
      path: '/OrderDetailPage',
      name: 'OrderDetailPage',
      component:OrderDetailPage
    },
    {
      path: '/CouponPage',
      name: 'CouponPage',
      component:CouponPage
    },
    {
      path: '/Login',
      name: 'Login',
      component:Login
    }
  ]
})
